##############################################################
## : Last added, top torrents, top users Mod
## : RoadTrain 
## : 1.6.0
##   ajax: Bender (Alekseev)
## :        .
## : 
## 
##############################################################

---------------------------------[  library/language/ru/main.php     ]------------------------

$lang['LAST_ADDED'] = ' ';
$lang['TOP_DOWNLOADED'] = ' ';
$lang['TOP_SEEDERS'] = " {$bb_cfg['t_top_uploaders']} ";
$lang['TOP_LEECHERS'] = " {$bb_cfg['t_top_downloaders']} ";
$lang['NO_MATCHING'] = '  ';
$lang['NO_TOP_MATCH'] = '   ';
$lang['CLICK_TO_VIEW'] = '  ';

---------------------------------[  library/config.php     ]------------------------

$bb_cfg['t_last_added_num'] = 7;
$bb_cfg['t_top_downloaded'] = 7;
$bb_cfg['t_top_uploaders'] = 5;
$bb_cfg['t_top_downloaders'] = 5;
$bb_cfg['top_cache'] = '20';
$bb_cfg['title_text'] = 30;

---------------------------------[  ajax.php  ]------------------------

		'manage_group'      => array('user'),

---------------------------------[   ]---------------------------------

		'releases'          => array('user'),

---------------------------------[  ]-----------------------------------------

	function sitemap()
	{
		require(AJAX_DIR .'sitemap.php');
	}

---------------------------------[   ]---------------------------------	

	function releases()
	{
		require(AJAX_DIR .'releases.php');
	}

---------------------------------[  styles/templates/default/page_header.tpl  ]------------------------

<!-- IF HTML_SIDEBAR_1 -->

---------------------------------[   ]---------------------------------

<script type="text/javascript">
	ajax.releases = function(mode) {
		ajax.exec({
			action : 'releases',
			mode   : mode,
		});
	};
	ajax.callback.releases = function(data) {
		$('#'+data.mode).toggle().html(data.html);
	};
</script>
<div class="section visitorPanel">
	<div class="secondaryContent">  
	<ol>	
		<div class="sidebarContent">
			<!-- IF $bb_cfg['t_last_added_num'] -->
			<h3><a href="#" id="load_last_added" onclick="ajax.releases('last_added'); return false;" title="{L_CLICK_TO_VIEW}"><img src="styles/images/plus.png" width="22px;" height="22px;" alt="">{L_LAST_ADDED}</a></h3>
			<span id="last_added" style="display: none;"></span>
			<!-- ENDIF -->
			<!-- IF $bb_cfg['t_top_downloaded'] -->
			<h3><a href="#" id="load_top_downloaded" onclick="ajax.releases('top_downloaded'); return false;" title="{L_CLICK_TO_VIEW}"><img src="styles/images/plus.png" width="22px;" height="22px;" alt="">{L_TOP_DOWNLOADED}</a></h3>
			<span id="top_downloaded" style="display: none;"></span>
			<!-- ENDIF -->
			<!-- IF $bb_cfg['t_top_uploaders'] -->
			<h3><a href="#" id="load_top_uploaders" onclick="ajax.releases('top_uploaders'); return false;" title="{L_CLICK_TO_VIEW}"><img src="styles/images/plus.png" width="22px;" height="22px;" alt="">{L_TOP_SEEDERS}</</a></h3>
			<span id="top_uploaders" style="display: none;"></span>
			<!-- ENDIF -->
			<!-- IF $bb_cfg['t_top_downloaders'] -->
			<h3><a href="#" id="load_top_downloaders" onclick="ajax.releases('top_downloaders'); return false;" title="{L_CLICK_TO_VIEW}"><img src="styles/images/plus.png" width="22px;" height="22px;" alt="">{L_TOP_LEECHERS}</</a></h3>
			<span id="top_downloaders" style="display: none;"></span>
			<!-- ENDIF -->
		</div>
	</ol>
	</div>
</div>